package work;

public class ValueOfDemo {
    public static void main(String[] args) {
        char a = 'a';
        String str1 = String.valueOf(a);
        System.out.println(str1);

        boolean b = true;
        String str2 = String.valueOf(b);
        System.out.println(str2);
        System.out.println(b+"");
        System.out.println(true+"");

        Person p = new Person();
        String str = String.valueOf(p);
        System.out.println(str);
    }
}

class Person{
    String name;
    int age;
}
